const express = require('express');
const db = require('../db/index');
const Students = require('../models/students');
const router = new express.Router();
router.post('/student_info',async(req,res)=>{
    console.log(req.body);
    await db;
    try{
        await Students.create(req.body);

        
        res.send('学生信息提交成功！！');
    }catch(e){
        console.log(e);
        res.send('请重新输入！！')
    }
   
})
module.exports = router;